﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Common.Exp2D
{
    class Environement2D
    {
        private Vector2 m_gravity = new Vector2 (0 , 0.9f);
        public Vector2 Gravity
        {
            get { return m_gravity; }            
        }

        private Vector2 m_airFriction = new Vector2(0, 0.10f);
        public Vector2 AirFriction
        {
            get { return m_airFriction; }
        }


        private Vector2 m_wind = new Vector2(0, 0);
        public Vector2 Wind
        {
            get { return m_wind; }

        }
        
        private static object m_obj = new object();

        private Environement2D()
        {
        }


        private static Environement2D m_environement = new Environement2D();
        public static Environement2D Instance
        {
            get 
            {
                lock (m_obj)
                {
                    return m_environement;
                }
            }
        }
     

    }
}
